#pragma once
#include <QStyledItemDelegate>

namespace LBPROJLOGIC
{
    class CPreTaskTableDelegate : public QStyledItemDelegate
    {
    public:
        CPreTaskTableDelegate(QObject *parent = Q_NULLPTR);
        ~CPreTaskTableDelegate();

        virtual QWidget* createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
        virtual void setEditorData(QWidget *editor, const QModelIndex &index) const override;
        virtual void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override;
        virtual void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const override;

    };
}

